package com.mk3.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.segments.MergeSegments;
import com.mk3.model.Student;
import com.mk3.mapper.StudentMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mk.chen
 * @since 2019-12-27
 */
@Service
public class StudentService extends ServiceImpl<StudentMapper, Student> {

    public List<Student> selectALL() {
        Wrapper<Student> wrapper = new Wrapper<Student>() {
            @Override
            public Student getEntity() {
                return null;
            }

            @Override
            public MergeSegments getExpression() {
                return null;
            }

            @Override
            public String getSqlSegment() {
                return null;
            }
        };
        List<Student> students = baseMapper.selectList(wrapper);

        return students;
    }
}
